hvm svm: Log into 'xm dmesg' that SVM NPT is enabled.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 19 Jun 2007 14:39:08 +0000 (15:39 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 19 Jun 2007 14:39:08 +0000 (15:39 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/hvm/svm/svm.c

index c26ebc4d1fa1b9c9b0ea70af32be20691d423f5f..92b7fd95c830175ff35771c079645b780285b2f7 100644 (file)
@@ -957,7 +957,7 @@ static struct hvm_function_table svm_function_table = {
     .event_injection_faulted = svm_event_injection_faulted
 };
 
-void svm_npt_detect(void)
+static void svm_npt_detect(void)
 {
     u32 eax, ebx, ecx, edx;
 
@@ -1017,6 +1017,9 @@ int start_svm(struct cpuinfo_x86 *c)
 
     hvm_enable(&svm_function_table);
 
+    if ( opt_hap_enabled )
+        printk("SVM: Nested paging enabled.\n");
+        
     return 1;
 }